import psutil

usage_cpu_average = 0
for nums in range(0, 3):
    usage_cpu_average += round(psutil.cpu_percent(interval=3))
    print("loop %d, value %d"%(nums, usage_cpu_average))
print(usage_cpu_average)

usagea_cpu_average = round(usage_cpu_average / 3)
print(usagea_cpu_average)
